package org.boyan.modules.service.impl;

import org.boyan.entity.blood.BloodAnalysis;
import org.boyan.modules.mapper.BloodAnalysisDao;
import org.boyan.modules.service.BloodAnalysisService;
import org.boyan.modules.vo.BloodVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BloodAnalysisServiceImpl implements BloodAnalysisService {
    @Autowired
    private BloodAnalysisDao bloodAnalysisDao;
    @Override
    public List<BloodVO> getBloodList(BloodAnalysis bloodAnalysis, int currentPage, int pageSize) {
        int relPage=(currentPage-1)*pageSize;
        return bloodAnalysisDao.getBloodList(bloodAnalysis,relPage,pageSize);
    }

    @Override
    public int getTotal(BloodAnalysis bloodAnalysis) {
        return bloodAnalysisDao.getTotal(bloodAnalysis);
    }
}
